﻿Ext
		.define(
				"Lia.view.MapCar",
				{
					extend: 'Ext.form.Panel',	
					id : 'MapCar',
					alias : "widget.mapcarview",
					config: {
						items : [{
							xtype : "toolbar",
							docked : "top",
							title : "Edit Car",
							items : [ {
								xtype : "button",
								ui : "back",
								text : "Volver",
								itemId : "backButtonCar",
								id : "backButtonCar"
									
							} ]
						},
									{
									    xtype: 'map',
									    useCurrentLocation: true,
									    fullscreen: false,									    
									    layout: 'card',								
									    id: 'jobmap',
									    itemId:'jobmap',
									    listeners: {
								            maprender : function(comp, map){
								                new google.maps.Marker({
								                	title : 'Estoy Aqui.',
								                    position: new google.maps.LatLng(this._geo.getLatitude(), this._geo.getLongitude()),
								                    map: map
								                });
								            }},
									    alias : "widget.jobmap",
									    height: 400,
									    mapOptions: {
									        zoom: 12,
									        navigationControl: true,
									        navigationControlOptions: 
									        {
									            style: google.maps.NavigationControlStyle.DEFAULT
									        }
									    }                    
									}
						         ]
				
				     
				    }


				});